package com.twu.biblioteca;

import java.util.List;
import java.util.Map;

/**
 * Created by balau on 3/9/14.
 *
 *
 */
public class Library {

    Map<String, String> bookList;

    public Library(Map<String, String> bookList) {
        this.bookList = bookList;
    }

    public String listBooks() {
        String result = "";
        for (String bookName : bookList.keySet()) {
            result += bookName + ", ";
        }
        result = result.substring(0, result.length()-2);

        return result;
    }

    public void checkOutBooks(String bookToCheckOut) {
        bookList.remove(bookToCheckOut);

    }
}
